RCS file: /cvsroot/gpsbabel/gpsbabel/vitosmt.c,v
I've found one of my valid vitosmt file fails the integrity test. I
relaxed the validation a little.
RCS file: /cvsroot/gpsbabel/gpsbabel/waypt.c,v
Set some default values for new waypoint members.
RCS file: /cvsroot/gpsbabel/gpsbabel/lowranceusr.c,v
Discovered that the lowrance.c arg list is not null-terminated, causing
a GPF in exit_vecs .
"#\n"
"DESCRIPTION Microsoft Streets and Trips 2002-2005\n"
+"EXTENSION txt\n"
+
"#\n"
"# FILE LAYOUT DEFINITIIONS:\n"
{"merge", &merge, "(USR output) Merge into one segmented track",
NULL, ARGTYPE_BOOL },
{"break", &seg_break, "(USR input) Break segments into separate tracks",
- NULL, ARGTYPE_BOOL }
+ NULL, ARGTYPE_BOOL },
+ {NULL, NULL, NULL, NULL, 0}
};
static void
unsigned char gpsvalid =0;
unsigned char gpssats =0;
int serial =0;
- xml_tag * xml_curr =0;
char buffer[80] ="\0";
subversion = ReadLong(infile); /* 1000 */
count = ReadLong(infile); /* n */
check1 = ReadLong(infile); /* 0 */
- check2 = ReadLong(infile); /* n-1 */
+ check2 = ReadLong(infile); /* not sure */
check3 = ReadLong(infile); /* n */
if (version!=vitosmt_version) {
if ((count!=check3) ||
(check1!=count-1) ||
- (check2!=0) ||
(check3!=count) ) {
fatal("%s (%d) reading file. Invalid file header\n",
struct tm* tmstructp =0;
double seconds =0;
double worknum =0;
- xml_tag* xmltagp =0;
++count;
workbuffer = xcalloc(vitosmt_datasize,1);
wpt->altitude = unknown_alt;
wpt->course = -999.0;
wpt->speed = -999.0;
+ wpt->fix = fix_unknown;
+ wpt->sat = -1;
return wpt;
}